package com.networkmanagerj
{
	
	import com.networkmanagerj.IDispose;
	
	import flash.events.EventDispatcher;

	public class XvicEventDispatcher extends EventDispatcher implements IDispose
	{
		private static var instance : XvicEventDispatcher;
		
		public function XvicEventDispatcher(singleton : Singleton)
		{
		   super(null);
		   if(singleton == null)
		      throw new Error("Singleton Error");			
		}
		
		public static function getInstance() : XvicEventDispatcher
		{
		   if(instance == null)
		      instance = new XvicEventDispatcher(new Singleton());
		      
		   return instance;   	
		}
		
		public function dispose():void
		{
			instance = null;
		}
		
		
	}
}
   internal class Singleton
   {
   	
   }